﻿using System;
using Framework.Resource;

namespace Framework
{

    public class EntityManager :  FrameworkComponent
    {
        private IResourceManager m_resourceManager;

        private int m_serialId;
        public int GenSerialId()
        {
            m_serialId++;
            return m_serialId;
        }
        private void Start()
        {
            m_serialId = 0;
            m_resourceManager = GameEntry.GetComponent<ResourceManager>();
        }



        public void ShowEntity(Type entityLogicType, string entityGroupName, EntityData data)
        {
            ShowEntity(data.SerialId, entityLogicType,data.AssetName, entityGroupName, 0, data);
        }
        public void ShowEntity(int entityId, Type entityLogicType, string entityAssetName, string entityGroupName, int priority, object userData)
        {
            
        }

        public void HideEntity(int entityId)
        {
            
        }
        public override void OnUpdate(float elapseSeconds, float realElapseSeconds)
        {
            // throw new System.NotImplementedException();
        }

        public override void Shutdown()
        {
            // throw new System.NotImplementedException();
        }
    }

}